import { Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
import {LogModule} from '../log/log.module'

@Module({
  // 导入log模块 
  // imports:[LogModule], 
  // 动态注入log模块
  // imports:[LogModule.register('user')], // 动态注册方法到user
  imports:[LogModule.forRoot('user')], // 静态注册方法到user
  controllers: [UserController],
  providers: [UserService]
})
export class UserModule {}
